import { createStore } from 'vuex'

export default createStore({
  state: {
    token:"",//记录在线的令牌
    user:{
      id:6,
      phone:""
    },
    goodType:{
      foods:1,
      car:2,
      jingdian:3,
      techan:4,
      menpiao:5,
      yule:6,
      hotel:7
    }
  },
  getters: {
  },
  mutations: {
    setTk(state,token){
      state.token=token;
    },
    setUser(state,u){
      state.user=u;
    }
  },
  actions: {
  },
  modules: {
  }
})
